home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCAAAACCCCHHHHEEEECCCCTTTTLLLL((((2222)))) CCCCAAAACCCCHHHHEEEECCCCTTTTLLLL((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- cachectl - mark pages cacheable or uncacheable
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ccccaaaacccchhhheeeeccccttttllll....hhhh>>>>
-
- iiiinnnntttt ccccaaaacccchhhheeeeccccttttllll ((((vvvvooooiiiidddd ****aaaaddddddddrrrr,,,, iiiinnnntttt nnnnbbbbyyyytttteeeessss,,,, iiiinnnntttt oooopppp))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _c_a_c_h_e_c_t_l system call allows a process to make ranges of its address
- space cacheable or uncacheable. Initially, a process's entire address
- space is cacheable.
-
- The _o_p parameter may be one of:
-
- CCCCAAAACCCCHHHHEEEEAAAABBBBLLLLEEEE Make the indicated pages cacheable
-
- UUUUNNNNCCCCAAAACCCCHHHHEEEEAAAABBBBLLLLEEEE Make the indicated pages uncacheable
-
- The CACHEABLE and UNCACHEABLE _o_p's affect the address range indicated by
- _a_d_d_r and _n_b_y_t_e_s. _a_d_d_r must be page aligned and nbytes must be a multiple
- of the page size.
-
- Changing a page from UNCACHEABLE state to CACHEABLE state will cause both
- the instruction and data caches to be flushed if necessary to avoid stale
- cache information.
-
- On Power Indigo2, Indigo2 10000 and Power Challenge M systems, user
- programs are not allowed uncached access to main memory, so requesting
- this will fail with EINVAL.
-
- On systems with hardware coherent caches, _c_a_c_h_e_c_t_l will complete
- successfully, but not actually allow memory to be accessed uncached.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _c_a_c_h_e_c_t_l returns 0 when no errors are detected. If errors are detected,
- _c_a_c_h_e_c_t_l returns -1 with the error cause indicated in _e_r_r_n_o.
-
- EEEERRRRRRRROOOORRRRSSSS
- [EINVAL] The _o_p parameter is not one of CACHEABLE or UNCACHEABLE,
- or is UNCACHEABLE on a Power Indigo2, Indigo2 10000 or
- Power Challenge M.
-
- [EINVAL] The _a_d_d_r parameter is not page aligned, or _n_b_y_t_e_s is not
- a multiple of the page size.
-
- [EFAULT] Some or all of the address range _a_d_d_r to (_a_d_d_r+_n_b_y_t_e_s-1)
- is not accessible.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- CCCCAAAACCCCHHHHEEEECCCCTTTTLLLL((((2222)))) CCCCAAAACCCCHHHHEEEECCCCTTTTLLLL((((2222))))
-
-
-
- SEE ALSO
- cacheflush(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-